package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Article;
import com.xxgc.eow.entity.CollectArticleSecondary;
import com.xxgc.eow.entity.Collectarticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 收藏文章表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-24
 */
@Mapper
public interface CollectarticleMapper extends BaseMapper<Collectarticle> {

    List<Collectarticle> selectAllByUserId(Integer userId);

    int insertCollectArticle(CollectArticleSecondary collectArticleSecondary);

    Integer getArticleById(int articleId);

    int updateArticleArtucke(@Param("articleId") int articleId, @Param("collectNum") int collectNum);

    int delArticleCollect(CollectArticleSecondary collectArticleSecondary);

    CollectArticleSecondary selectTfData(CollectArticleSecondary collectArticleSecondary);



}
